<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>管理员 - 编辑管理员</h3>
                <h5>网站系统管理员资料</h5>
            </div>
        </div>
    </div>
    <form class="form-horizontal" id="adminHandle" action="{:U('Admin/design_info')}" method="post">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="name"><em>*</em>姓名</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="name" value="{$info.name}" id="name" class="input-txt">
                    <p class="notic">姓名</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="phone"><em>*</em>电话</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="phone" value="{$info.phone}" id="phone" class="input-txt">
                    <p class="notic">联系电话</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="qq"><em>*</em>QQ</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="qq" value="{$info.qq}" id="qq" class="input-txt">
                    <p class="notic">咨询QQ</p>
                </dd>
            </dl>
            <dl class="row">
		        <dt class="tit">头像</dt>
		        <dd class="opt">
		          <div class="input-file-show" id="divComUploadContainer">
		            <span class="show">
		                <a class="nyroModal" rel="gal" href="{$info.photo}">
		                    <i class="fa fa-picture-o" onmouseover="layer.tips('<img src={$info.photo}>',this, {tips: [1, '#fff']});" onmouseout="layer.closeAll();"></i>
		                </a>
		            </span>           
		            <span class="type-file-box">            
		            <input type="text" id="imagetext" name="photo" value="{$info.photo}" class="type-file-text">            
		            <input type="button" class="type-file-button" onClick="GetUploadify(1,'imagetext','category','')" value="上传图片" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图，点击按钮选择文件并提交表单后上传生效"/> 
		            </span>
		          </div>
		          <div id="thumbnails" class="ncap-thumb-list">
		            <h5><i class="fa fa-exclamation-circle"></i> 请上传图片格式文件。</h5>
		            <ul>
		            </ul>
		          </div>
		        </dd>
		    </dl> 
            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>所属厂家</label>
                </dt>
                <dd class="opt">
                    <select name="suppliers_id">
                    	<option value="0">请选择所属厂家</option>
                        <volist name="suppliers" id="item">
                            <option value="{$item.suppliers_id}" <if condition="$item[suppliers_id] eq $info[suppliers_id]"> selected="selected"</if> >{$item.suppliers_name}</option>
                        </volist>
                    </select>
                    <span class="err"></span>
                    <p class="notic">选择所属酒厂厂家,不选厂家则默认平台设计师</p>
                </dd>
            </dl>
            <dl class="row">
		        <dt class="tit">
		            <label for="record_no">设计师简介</label>
		        </dt>
		        <dd class="opt">                    
		            <textarea class="span12" style="width: 80%;" id="description" name="description" title="">{$info.description}</textarea>
		            <span class="err" id="err_goods_description" style="color:#F00; display:none;"></span>
		            <p class="notic">设计师简单介绍</p>
		        </dd>
		    </dl> 
            <div class="bot"><a href="JavaScript:void(0);" onclick="adsubmit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
        </div>
        <input type="hidden" name="id" value="{$info.id}"></label>
    </form>
</div>
<script type="text/javascript">
    // 判断输入框是否为空
    function adsubmit(){
        if($('input[name=user_name]').val() == ''){
            layer.msg('用户名不能为空！', {icon: 2,time: 1000});   //alert('少年，用户名不能为空！');
            return false;
        }
        if($('input[name=email]').val() == ''){
            layer.msg('邮箱不能为空！', {icon: 2,time: 1000});//alert('少年，邮箱不能为空！');
            return false;
        }
        if($('input[name=password]').val() == ''){
            layer.msg('密码不能为空！', {icon: 2,time: 1000});//alert('少年，密码不能为空！');
            return false;
        }
        $('#adminHandle').submit();
    }
</script>
</body>
</html>